package com.qf.api.feign;

import com.qf.api.config.FeignConfig;
import com.qf.api.fallback.PointFeignFallbackFactory;
import com.qf.common.core.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * --- 天道酬勤 ---
 *
 * @author QiuShiju
 * @date 2025/11/10
 * @desc
 */
@FeignClient(value="micro-point",
        fallbackFactory = PointFeignFallbackFactory.class,
        configuration = FeignConfig.class)
public interface PointFeign {

    @PostMapping("/point/add")
    R addPoint(@RequestParam("uid") Integer uid,@RequestParam("pointType") Integer pointType);

}
